<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>bootstrap下拉菜单</title>
    <link rel="stylesheet" href="../css/bootstrap.css">
</head>
<style>
    main {
        margin: 1%;
        padding: 1%;
    }
</style>

<body>

    <main>
        <div class="dropdown">
            <button class="btn btn-secondary dropdown-toggle" data-toggle="dropdown">下拉菜单</button>
            <div class="dropdown-menu">
                <a href="#" class="dropdown-item active">首选项</a>
                <div class="dropdown-divider"></div>
                <a href="#" class="dropdown-item disabled">禁用选项</a>
                <a href="#" class="dropdown-item">选项A</a>
                <a href="#" class="dropdown-item">选项B</a>
            </div>
        </div>


    </main>


    <script src="../js/jquery.min.js"></script>
    <script src="../js/bootstrap.bundle.min.js"></script>
</body>

</html>